package com.gm.dao.cardType;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.github.miemiedev.mybatis.paginator.domain.PageList;
import com.gm.model.po.CardType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by taojie on 17-6-21.
 */
public interface ICardTypeDao {

    int deleteByPrimaryKey(Integer id);

    int insert(CardType record);

    int insertSelective(CardType record);

    CardType selectByPrimaryKey(Integer id);

    CardType selectByName(String name);

    int updateByPrimaryKeySelective(CardType record);

    int updateByPrimaryKey(CardType record);

    PageList<CardType> getCardTypeList(@Param("pageBounds")PageBounds pageBounds);

    List<CardType> getCardTypeAll();

}
